<!--
//******************************************************************
//* Copyright (c) 2008 Ford Motor Company. All Rights Reserved.
//*
//*
//* $$Workfile:   macropart.jsp  $$
//* $$Revision:   1.0  $$
//* $$Author:   JLOPE262  $$
//* $$Date:   Nov 21 2008 13:37:12  $$
//*
//* Description: Description of file goes here
//******************************************************************
-->
<%@ taglib uri="http://jakarta.apache.org/struts/tags-bean" prefix="bean" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-html" prefix="html" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-logic" prefix="logic" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://displaytag.sf.net/el" prefix="display-el" %>
<%@ taglib uri="ford-arg/tags" prefix="ft" %>

<script language="javascript">
	
</script>

<table>
	<tr>
		<td><h2><bean:message key="macropart.label.title"/></h2></td>
	</tr>
</table>
<br/>
<html:form action="/MacropartInfoActionInit">
<html:hidden property="section"/>

	<bean:define id="partTitle">
		<bean:message key="macropart.label.tableHeader.part" />
	</bean:define>
	<bean:define id="supplierTitle">
		<bean:message key="macropart.label.tableHeader.supplier" />
	</bean:define>
	<bean:define id="mixTitle">
		<bean:message key="macropart.label.tableHeader.mix" />
	</bean:define>
	<bean:define id="useTitle">
		<bean:message key="macropart.label.tableHeader.use" />
	</bean:define>	
	<bean:define id="priceTitle">
		<bean:message key="macropart.label.tableHeader.price" />
	</bean:define>	
	<bean:define id="sharePercentTitle">
		<bean:message key="macropart.label.tableHeader.sharePercent" />
	</bean:define>	
	<bean:define id="puTitle">
		<bean:message key="macropart.label.tableHeader.pu" />
	</bean:define>
	
	<table>
		<tr>
			<td class="text_blue_bold align_left">
				<bean:message key="macropart.label.supplier" />
			</td>
			<td class="align_left">
				<bean:write name="MacropartInfoForm" property="supplier.eess01SupplierClassCodeC" />&minus;
				<bean:write name="MacropartInfoForm" property="supplier.eess01SupplierCodeC" />&nbsp;
				<bean:write name="MacropartInfoForm" property="supplier.eess01SupplierNameN" />
			</td>
			<td class="text_blue_bold align_left">
				<bean:message key="macropart.label.vehicleLine" />
			</td>
			<td class="align_left">
				<bean:write name="MacropartInfoForm" property="vehicleLine.cas012VehicleCodeC" />
			</td>									
		</tr>
		<tr>
			<td class="text_blue_bold align_left">
				<bean:message key="label.scope" />			
			</td>
			<td class="align_left">
				<logic:equal name="MacropartInfoForm" property="costStrVersion.teesc01Coststruct.eesc01CststrTypeCodeC" value="S">
					<bean:message key="label.allOption" />
				</logic:equal>
				<logic:equal name="MacropartInfoForm" property="costStrVersion.teesc01Coststruct.eesc01CststrTypeCodeC" value="C">
					<bean:write name="MacropartInfoForm" property="costStrVersion.teesc01Coststruct.teesp02Commodity.eesp02CommodityNameN" />
				</logic:equal>
			</td>			
			<td class="text_blue_bold align_left">
				<bean:message key="macropart.label.mixDate" />
			</td>
			<td class="align_left">
				<bean:write name="MacropartInfoForm" property="mixDate" />
			</td>														
		</tr>
		<tr>
			<td style="height:15px;" />
		</tr>
		<tr>
			<td colspan="100%">
				<display-el:table 	class="table1" style="width: 800px;" cellpadding="5" uid="macropartStruct"
									name="sessionScope.MacropartInfoForm.macropartStructCol"
									excludedParams="*" requestURI="MacropartInfoActionPaginate">
					<display-el:column title="${partTitle}" class="cell1 text_bold border1_right border1_top align_left" headerClass="header border_right">					
							${ macropartStruct.supply.teesp01Part.eesp01PartClassCodeC }&minus;
							${ macropartStruct.supply.teesp01Part.eesp01PartPrefixCodeC }&minus;
							${ macropartStruct.supply.teesp01Part.eesp01PartBaseCodeC }&minus;
							${ macropartStruct.supply.teesp01Part.eesp01PartSuffixCodeC }							
					</display-el:column>
					<display-el:column title="${supplierTitle}" class="cell1 text_bold border1_right border1_top align_left" headerClass="header border_right">
							${ macropartStruct.supply.teess01Supplier.eess01SupplierClassCodeC }&minus;
							${ macropartStruct.supply.teess01Supplier.eess01SupplierCodeC }
					</display-el:column>
					<display-el:column title="${mixTitle}" class="cell1 text_bold border1_right border1_top align_left" headerClass="header border_right">
							${ macropartStruct.mix.eesp06MixValuePercentP*100 }%
					</display-el:column>
					<display-el:column title="${useTitle}" property="mix.eesp06MixUsageQuantityQ" class="cell1 text_bold border1_right border1_top align_left" headerClass="header border_right" style="width:18%" />
					<display-el:column title="${priceTitle}" class="cell1 text_bold border1_right border1_top align_left" headerClass="header border_right" style="width:25%">
						<div style="float:left;">${ macropartStruct.pricing.eesp05CurrencyCodeC.eesm01CurrencyCodeC }</div>
						<div style="float:right;">${ macropartStruct.pricing.eesp05PriceAmountA }</div>
					</display-el:column>
					<display-el:column title="${sharePercentTitle}" class="cell1 text_bold border1_right border1_top align_left" headerClass="header border_right">
							${ macropartStruct.supply.eesp04SupplySharePercentPRound }%
					</display-el:column>						
					<display-el:column title="${puTitle}" property="perUnit" class="cell1 text_bold border1_right border1_top align_left" headerClass="header border_right" />
				</display-el:table>						
			</td>
		</tr>
	</table>

</html:form>